// 标题颜色配置项
const categoryList = [
  { name: "空闲", color: "#22AC38" },
  { name: "满仓", color: "#EC3838" },
  { name: "空仓", color: "#2465FF" },
  { name: "禁用", color: "#D2D2D2" },
];

// 主体背景颜色转换
const caseContentBack = (value) => {
  switch (value) {
    case 0: // 空仓
      return "rgba(36, 101, 255, 0.15)";
    case 1: // 空闲
      return "rgba(34, 172, 56, 0.15)";
    case 2: // 满仓
      return "rgba(236, 56, 56, 0.15)";
    case 3: // 禁止
      return "rgba(140, 140, 140, 0.15)";
  }
};
// 头部背景色转换
const caseHeadBack = (value) => {
  switch (value) {
    case 0:
      return "rgba(36, 101, 255, 0.5)";
    case 1:
      return "rgba(34, 172, 56, 0.5)";
    case 2:
      return "rgba(236, 56, 56, 0.5)";
    case 3:
      return "rgba(140, 140, 140, 0.5)";
  }
};

// 图片转换
const caseImg = (value) => {
  switch (value) {
    case 0:
      return require("@/images/empty.png");
    case 3:
      return require("@/images/disable.png");
  }
};

export { caseImg, categoryList, caseContentBack, caseHeadBack };
